#if defined CONFIG_RESOLVER
#ifndef MP3_H
#define MP3_H
typedef enum MPAMPEGVER{
	mpa_mpeg_unknow=0x00,
	mpa_mpeg25,	
	mpa_mpeg2,	
	mpa_mpeg1
}MPAMPEGVER;

typedef enum MPALAYERVER{
	mpa_layer_unknow=0x00,
	mpa_layer3,	
	mpa_layer2,	
	mpa_layer1
}MPALAYERVER;

typedef enum MPACHANNELMODE{
	mpa_channelmode_stereo=0x00,
	mpa_channelmode_jointstereo,	
	mpa_channelmode_doubletrack,	
	mpa_channelmode_mono
}MPACHANNELMODE;
#define msstring_mpa_channelmode \
	"stereo"	,  \
	"jointstereo", \
	"doubletrack", \
	"mono", 
typedef enum MPACHANNELMODE_EX{
	mpa_channelmode_jointstereo_Intensitystereo_msstereo_offoff=0x00,
	mpa_channelmode_jointstereo_Intensitystereo_msstereo_onoff,	
	mpa_channelmode_jointstereo_Intensitystereo_msstereo_offon,	
	mpa_channelmode_jointstereo_Intensitystereo_msstereo_onon
}MPACHANNELMODE_EX;

typedef struct MP3HEADERContext{
	//sync [0:7]
	
	//sync[0:2]
	MPAMPEGVER 	mpegver;		//[3:4]
	MPALAYERVER	layerver;		//[5:6]
	ms_bool 			flag_crc;  		//[7]
	
	ms_s32			bitrate;		//[0:3]
	ms_u32			sample_rate;	//[4:5]	
	ms_bool			flag_adapt;	//[6]
	//res [7]
	
	MPACHANNELMODE 	channel_mode;	//[0:1]
	MPACHANNELMODE_EX channel_mode_ex;	//[2:3]
	ms_bool flag_copyright;	//[4]
	ms_bool flag_original;	//[5]
}MP3HEADERContext;
extern ms_bool 
	mp3_api_check(MP3HEADERContext *pmp3header_ctt,ms_u08 *buf, int len );
extern ms_void 
	mp3_api_getInfo(MP3HEADERContext *pmp3header_ctt,ms_u08 *pinfoout );
#endif
#endif